import request from '@/utils/request'

// 查询物料出仓明细列表
export function listWhStorehouseOutdetail(query) {
  return request({
    url: 'wh/storehouseOutdetail/list',
    method: 'get',
    params: query
  })
}

// 查询物料出仓明细详细
export function getWhStorehouseOutdetail(id) {
  return request({
    url: 'wh/storehouseOutdetail/' + id,
    method: 'get'
  })
}

// 新增物料出仓明细
export function addWhStorehouseOutdetail(data) {
  return request({
    url: 'wh/storehouseOutdetail/batchAdd',
    method: 'post',
    data: data
  })
}

// 修改物料出仓明细
export function updateWhStorehouseOutdetail(data) {
  return request({
    url: 'wh/storehouseOutdetail',
    method: 'put',
    data: data
  })
}

// 删除物料出仓明细
export function delWhStorehouseOutdetail(id) {
  return request({
    url: 'wh/storehouseOutdetail/' + id,
    method: 'delete'
  })
}
